package com.gxa.clientproduct.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Author: fenglin
 * @Date:2020/11/11 11:02
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//利用JPA关联数据表
@Table(name = "tb_classify")
public class Classify implements Serializable {

//    cla_id
//            pro_sysnum
//    cla_name
//            cla_logo
//    cla_superior
//            cla_unit
//    cla_sort
//            cla_state
//    cla_keyword
//            cla_description

    @Id
    @Column(name = "cla_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)//自动增长
    private  Integer    id;	//id	int

    @Column(name = "pro_sysnum")
    private  String     sysnum;  //	商品系统编号	varchar(255)

    @Column(name = "cla_name")
    private  String     name;	//分类名称	varchar(255)
    @Column(name = "cla_superior")
    private  Integer    superior;	//上级分类(表)	int
    @Column(name = "cla_logo")
    private  String     logo;	//分类logo	varchar(255)

    @Column(name = "cla_unit")
    private  String     unit;	//数量单位	varchar(255)

    @Column(name = "cla_sort")
    private  Integer    sort;	//分类排序	int

    @Column(name = "cla_state")
    private  Boolean    state;	//是否显示	bit

    @Column(name = "cla_keyword")
    private  String     keyword;	//关键字	varchar(255)

    @Column(name = "cla_description")
    private  String     description;	//分类描述	text


}
